﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Data;
using DTO;



namespace Business
{
    public class TheLoaiService
    {
        public static List<TheLoaiDTO> GetAllTheLoai()
        {
            return TheLoaiRepository.GetAllTheLoai();
        }
        public static void Insert(TheLoaiDTO theloaidto)
        {
            try
            {
                TheLoaiRepository.Insert(theloaidto);

            }
            catch
            {

            }
        }
        public static void Update(TheLoaiDTO theloaidto)
        {
            TheLoaiRepository.Update(theloaidto);
        }
        public static bool Delete(int matheloai)
        {
           return TheLoaiRepository.Delete(matheloai);
        }
        public static int NumberID()
        {
            return TheLoaiRepository.NumberID();
        }
        
    }
}
